package com.example.demo.user;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface UserRepository extends JpaRepository<User, Long> {

    //    @Query("select  u from User u order by u.id desc")
//    @Query("select f from User f where f.id between :min and :max")
//    List<User> findWithBetween(Long min, Long max);
//    List<User> yzcFindAll();

    List<User> findAll();
}
